package wordit.ea.stopfunctions;

import wordit.ea.Generation;
import wordit.ea.Genome;
import wordit.ea.StopFunction;

public class NonstopStopFunction implements StopFunction {
	@Override
	public boolean shouldStop(Generation currentGeneration) {
		Genome bestSoFar = currentGeneration.getBestGenome();

		if (bestSoFar == null) {
			System.out.printf("no genomes! aborting\n");
			return true;
		}

		return false;
	}

}
